import request from '@/utils/request'

/**
 * 申请成为咨询师
 * @param data
 * @returns {*}
 */
export function handApply(data) {
    return request({
        url: '/counselor/counselor/handApply',
        method: 'post',
        data: data
    })
}

/**
 * 查询申请记录
 * @returns {*}
 */
export function listCounselor() {
    return request({
        url: '/counselor/counselor/getById',
        method: 'get',
    })
}

/**
 * 查询已认证的咨询师记录
 * @returns {*}
 */
export function listCounselorList() {
    return request({
        url: '/counselor/counselor/listCounselors',
        method: 'get',
    })
}

/**
 * 获取咨询师详情
 * @param id
 * @returns {*}
 */
export function getCounselorById(counselorId) {
    return request({
        url: '/counselor/counselor/' + counselorId,
        method: 'get',
    })
}
